/**
 * api定义所有网络访问接口
 */
const api = {
  login: {
    method: "post",
    url: "/auth/login",
    desc: "用户登录",
    default: {},
  },
  productQuery: {
    method: "get",
    url: "/apk/product/query",
    desc: "查询所有项目",
    default: {},
  },
  productDelete: {
    method: "post",
    url: "/apk/product/delete",
    desc: "删除项目",
    default: {},
  },
  productUpdate: {
    method: "post",
    url: "/apk/product/update",
    desc: "更新项目名称",
    default: {},
  },
  productInsert: {
    method: "post",
    url: "/apk/product/insert",
    desc: "新建项目",
    default: {},
  },
  packageQuery: {
    method: "post",
    url: "/apk/package/query",
    desc: "查询所有安装包",
    default: {},
  },
  packageDelete: {
    method: "post",
    url: "/apk/package/delete",
    desc: "删除安装包",
    default: {},
  },
  packageUpdate: {
    method: "post",
    url: "/apk/package/update",
    desc: "更新安装包信息",
    default: {},
  },
  packageInsert: {
    method: "post",
    header: {
      "Content-Type": "multipart/form-data;charset=UTF-8",
    },
    url: "/apk/package/insert",
    desc: "上传安装包",
    default: {},
  },
};
export default api;
